package com.cntcdt.api.db.model;

import io.netty.util.concurrent.Future;

import java.io.Serializable;
import java.sql.ResultSet;
import java.util.Date;
import java.util.concurrent.TimeUnit;

import org.redisson.core.RBucket;

import com.cntcdt.api.db.model.base.CdtUserModelBase;
import com.cntcdt.api.utils.DecimalTo26;

/**
 * 这是cdt_user的数据传输对象类<br>
 */
public class CdtUserModel extends CdtUserModelBase implements Serializable , RBucket<Object> {

    private static final long serialVersionUID = 1L;
    
    private String inviteCode;
    
    public String getInviteCode() {
		return DecimalTo26.toRadix(this.getId());
	}

	public void setInviteCode(String inviteCode) {
		this.inviteCode = inviteCode;
	}

	/**
     *  默认构造方法,构造一个默认的CdtUserModel对象
     */
    public CdtUserModel() {
    }

    /**
     *  构造函数
     *  @param rs 数据库查询结果集
     */
    public CdtUserModel(ResultSet rs){
          super(rs);
    }

	@Override
	public boolean expire(long timeToLive, TimeUnit timeUnit) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean expireAt(long timestamp) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean expireAt(Date timestamp) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean clearExpire() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public long remainTimeToLive() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void migrate(String host, int port, int database) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean move(int database) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean delete() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void rename(String newName) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean renamenx(String newName) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Future<Void> migrateAsync(String host, int port, int database) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> moveAsync(int database) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> deleteAsync() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Void> renameAsync(String newName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> renamenxAsync(String newName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> expireAtAsync(Date timestamp) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> expireAtAsync(long timestamp) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> clearExpireAsync() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Long> remainTimeToLiveAsync() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Object> getAsync() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Void> setAsync(Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Void> setAsync(Object value, long timeToLive,
			TimeUnit timeUnit) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Future<Boolean> existsAsync() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object get() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void set(Object value) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void set(Object value, long timeToLive, TimeUnit timeUnit) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean exists() {
		// TODO Auto-generated method stub
		return false;
	}


}
